package cn.jt.controller;


import cn.jt.service.RightsSerive;
import cn.jt.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("rights")
public class RightsController {
    @Autowired
    private RightsSerive rightsSerive;

    @GetMapping("/getRightsList")
    public SysResult getRightsList(){
        return  SysResult.success(rightsSerive.getRightsList());
    }

}
